[FE] Implement error handling for GraphQL

Implement error handling for the GraphQL migration of the MR Security Widget.

See spike MR for details > Spike: Make GraphQL query available for the MR ... (!211217)

The error handling should match the existing REST endpoint implementation.

Epic: &10962

Edited by Samantha Ming