Add status code to response for friendrequest

Simple addition:

    status code 500 for internal errors,
    status code 200 for everything else