Use the specified param

Use the specified param rather then hard coding status code.