add respondCreated method
add new respond method for 422 error code