Similar to FriendsOfSymfony/FOSOAuthServerBundle#305 but for general: the library should allow for custom parameters in the response payloads in case the application wants to transmit custom information like a custom error code for e.g. login failures or the like.