Add error headers to invalid request messages