Hello there. Lisha here, employed as an IT professional.502 bad gateway wordpress spooks many WordPress users as they can't understand why the WordPress 502 bad gateway error occurs. A 502 bad gateway error is associated with the server. That is, your WordPress hosting server receives an erroneous response to a search query.