Request not implemented 501 Not Implemented in function