Skip to content

Conversation

applee
Copy link

@applee applee commented Jan 15, 2016

Our RESTful apis usually have custom error code when the request failed. But the custom err code is not equal to http status code which specified in RFC document. If we use custom status code instead of regular http status code , some iOS networking framework e.g. AFNetworking do not supported it, so we need a new function rest.ErrorCustom like this:

func ErrorCustom(w ResponseWriter, error interface{}, code int) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants