fix(Error Status Codes): certain types are returning a 500 status code when a unique constraint is violated