add API exceptions to fosrestbundle config for showing messages e.t.c.