The phrase "bloody hell" is not actually used in any of the Harry Potter movies.
While the phrase is quite common in British English, it is considered a mild swear word. The Harry Potter films, being targeted at a family audience, likely avoided using it to maintain a PG-13 rating.