Match errors in decode_query_resp/1