Correct way to return error in custom service through GraphQL

Hi all.

Still having a bit of trouble with this. Got to the point where the data returned is in the right structure, using what @taka has put in. But what we really need is the request status to be 400, instead of 200. (same as @pedrosimao mentioned)

Is there a way to control this?

Thanks,

Gwyn