My mistake, obviously when I wrote this Codes is in a different repository. The implementation should have been provided with this PR but wasnt.

I will rebase and resubmit tomorrow (~12 hours from now) now that it is back in FOSRestBundle.