The code already exists in the backend. This is to just send a nicely formatted 400 error. I can remove though if you think it's redundant.