checkin.php should not return HTTP/200 when operation fails

Currently, when given an invalid payload, checkin.php informs caller about failure by displaying a standard MantisBT error page.

This is not easily processed in automated scenarios (e.g. webhooks), which are the normal usage of this page.

Page should return an appropriate HTTP 4xx error code in this case.