Handles error returns (200, 201, ...) and form errors