Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/BaseBundle/Api/ApiProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
class ApiProblem
{
const TYPE_VALIDATION_ERROR = 'validation_error';
const TYPE_VALIDATION_NOTICE = 'validation_notice';
const TYPE_INVALID_REQUEST_BODY_FORMAT = 'invalid_body_format';

private static $titles = array(
self::TYPE_VALIDATION_NOTICE => 'There was a validation notice',
self::TYPE_VALIDATION_ERROR => 'There was a validation error',
self::TYPE_INVALID_REQUEST_BODY_FORMAT => 'Invalid JSON format sent',
);
Expand Down